"use strict";
cc._RF.push(module, '83568UfkCBGpqe3jvsy9KBc', 'result');
// Script/result/result.ts

/*
 * @Author: your name
 * @Date: 2020-08-12 10:04:00
 * @LastEditTime: 2020-08-12 16:43:03
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \shici_demo\assets\Script\result\result.ts
 */
Object.defineProperty(exports, "__esModule", { value: true });
var _a = cc._decorator, ccclass = _a.ccclass, property = _a.property;
var Result = /** @class */ (function (_super) {
    __extends(Result, _super);
    function Result() {
        var _this = _super !== null && _super.apply(this, arguments) || this;
        _this.resultNode = null; // 结算界面
        _this.levelLabel = null; // 关卡label
        _this.titleLabel = null; // 标题label
        _this.authorLabel = null; // 朝代作者label
        _this.poemLabel = null; // 诗句label
        return _this;
    }
    Result.prototype.setLevelLabel = function (lv) {
        this.levelLabel.string = "\u7B2C " + lv + " \u5173";
    };
    Result.prototype.setPoemInfo = function (title, author, dynasty, poem) {
        this.titleLabel.string = title;
        this.authorLabel.string = "[" + dynasty + "]" + author;
        var _arr = poem.split("。");
        var _str = "";
        for (var i = 0; i < _arr.length; i++) {
            _str += _arr[i] + '\n';
        }
        this.poemLabel.string = _str;
    };
    __decorate([
        property(cc.Node)
    ], Result.prototype, "resultNode", void 0);
    __decorate([
        property(cc.Label)
    ], Result.prototype, "levelLabel", void 0);
    __decorate([
        property(cc.Label)
    ], Result.prototype, "titleLabel", void 0);
    __decorate([
        property(cc.Label)
    ], Result.prototype, "authorLabel", void 0);
    __decorate([
        property(cc.Label)
    ], Result.prototype, "poemLabel", void 0);
    Result = __decorate([
        ccclass
    ], Result);
    return Result;
}(cc.Component));
exports.Result = Result;

cc._RF.pop();